<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        
        .container {
            width: 90%;
            margin: 0 auto;
            height: 400px;
            background-color: pink;
            display: grid;
            grid-template-columns: 200px auto;
        }
        
        .left {
            width: 200px;
            height: 400px;
            background-color: aquamarine;
            font-size: 70px;
            line-height: 400px;
            text-align: center;
        }
        
        .right {
            height: 400px;
            background-color: yellowgreen;
            font-size: 70px;
            line-height: 400px;
            text-align: center;
        }
        
        .clearfix::after {  
            content: '';
            display: block;
            height: 0;
            clear: both;
            visibility: hidden;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="left">定宽</div>
        <div class="right">自适应</div>
    </div>
    <h2>grid网格实现两列响应式布局</h2>
</body>
</html>